import instance from "@/axios";

// 成绩分页数据
export const scorePage = (searchParams)=>instance.post("/score/page",searchParams)

// 添加修改学生成绩
export const addOrUpdateScore = (scoreForm)=>instance.post("/score/addOrUpdate",scoreForm)


// 根据id获取成绩信息
export const getScoreById = (id)=>instance.get("/score/getById/"+id)


// 根据id获取成绩信息
export const deleteScoreById = (id)=>instance.delete("/score/delete/"+id)

// 批量添加成绩
export const importScore = (formData)=>instance.post("/score/import/",formData)


// 批量导出成绩
export const exportScore = (exportParams)=>instance.post("/score/export/",exportParams,{responseType:'arraybuffer'})
